﻿using CoreCms.Net.IServices;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.UI;
using CoreCms.Net.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Threading.Tasks;

namespace CoreCms.Net.Web.WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        private ICoreCmsGoodsServices _goodsServices;
        public TestController(ICoreCmsGoodsServices goodsServices)
        {
            _goodsServices = goodsServices;
        }
        /// <summary>
        /// 获取产品信息
        /// </summary>
        /// <returns></returns>
      //[HttpGet]
      //  public async Task<CoreCmsGoods> getCoreCmsGoods()
      //  {
           
      //      var jm = new WebApiCallBack();

      //      var userId = 0;
           

      //      var model = await _goodsServices.GetGoodsDetial(4161, userId, false);
        
         
      //      return model;
      //  }
    }
}
